import api from './index';


//请求轮播图
export const banner = () => api.get(`/x/api/app/banner`)
//首页数据请求地址： http://120.53.31.103:84/api/app/recommend/appIndex
export const home = () => api.get(`/x/api/app/recommend/appIndex`)
//获取短信验证码
export const semsCode = (tel, ss) => api.post(`/x/api/app/smsCode`, { mobile: tel, sms_type: ss })
//登录
export const login = (obj) => api.post(`/x/api/app/login`, obj)
//设置密码
export const setpassword = (obj) => api.post(`/x/api/app/password`, obj)
//特色课 请求地址：https://www.365msmk.com
export const course = (obj) => api.get(`/x/api/app/courseBasis`, { params: obj })
//关注老师  /x/api/teacher/collect get请求
export const collect = (id) => api.get(`/x/api/app/teacher/collect/${id}`)
//获取老师信息
export const getTearchDetail = (id) => api.get(`/x/api/app/teacher/${id}`)
//课程详情
export const courceDetail = (id) => api.get(`/x/api/app/courseInfo/basis_id=${id}`)

